//
//  UIView+SYFView.h
//  SYFCode
//
//  Created by Angel_Yan on 16/5/26.
//  Copyright © 2016年 银联科技. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^GestureActionBlock)(UIGestureRecognizer *gestureRecoginzer);


@interface UIView (SYFView)

@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign,readonly)CGFloat maxY;
@property (nonatomic, assign,readonly)CGFloat maxX;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;




/*
 * 添加默认的线条和圆角
 */

- (void)addDetaultBorderLineAndCornerRadius;


/**
 *  系统默认线条
 */
- (void)addLineLabelWithFrame:(CGRect )frame ;

/*
 * 添加阴影
 */

- (void)addDetaultShadow;

/*
 *手势
 */
- (void)addTapActionWithBlock:(GestureActionBlock)block;
- (void)addLongPressActionWithBlock:(GestureActionBlock)block;

@end
